package store

import (
	"database/sql"
	"log"
	"strings"
)

var major *sql.DB
var slave *sql.DB
var err error

var currMode string
var currRole string

func paramsNums(str string) string {
	return "(" + strings.Repeat("?,", len(strings.Split(str, ","))-1) + "?)"
}
func init() {
	log.SetFlags(log.Lshortfile | log.LstdFlags)
}
